@keyframes headerbg {0%{background-position: 0% 50%;}50%{background-position: 100% 50%;}100%{background-position: 0% 50%;}}
@keyframes textflicker{from{text-shadow:5pt 0 0 #FF81EA, -2pt 0 0 #81F7FF;}to{text-shadow:2pt 0.5pt 2pt #FF81EA, -1pt -0.5pt 6pt #81F7FF;}}
:root {
    --gradient-bg: linear-gradient(145deg, #A58AE3,#7068DB);
    --main-bg: #E1DDEA;
    --main-fg: #454065;
    --result-link-fg: #4E46BB;
    --result-fg: #A09BAD;
    --button-bg: #333333;
    --special-result-border: opacity: 0;
    --special-text-background: #B5AEC3;
    --special-text-color: #454065;
    --search-container-text-color: #454065;
    --search-container-background-color: linear-gradient(225deg, #fff, #f0f0f0);
    --search-form-background-color: #161616;
    --border: #303134;
    --scrollbar-color: #7068DB;
}


* {
   font-family: Arial, Helvetica, sans-serif;
   scrollbar-color: var(--scrollbar-color) transparent;
   scrollbar-width: thin;
}
::-webkit-scrollbar {width: 5pt;}
::-webkit-scrollbar-track {background: transparent;}
::-webkit-scrollbar-thumb {background: #7068DB;}

html {
    color: var(--main-fg);
    background-color: var(--main-bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20pt;
}

body {
    margin: 0;
}
html, body {
    overflow-x: hidden;
}

input, button {
    outline: none;
}

button {
    cursor: pointer;
}

p {
    font-size: 18pt;
    color: var(--result-fg);
}

a, .text-result-wrapper a:hover {
    text-decoration: none;
    
}

.text-result-wrapper a:visited h2,
.special-result-container a,
.did-you-mean a {
    color: var(--result-link-fg);
}

.sub-search-button-wrapper a,
.sub-search-button-wrapper a:visited {
    color: var(--scrollbar-color);
}

.sub-search-button-wrapper .active {
    border-bottom: 2pt var(--scrollbar-color) solid;
    padding-bottom: 10pt;
}

a:hover, .text-result-wrapper h2:hover {
    text-decoration: underline;
}

input[type="checkbox"] {
    width: 30pt;
    height: 30pt;
    padding: 4pt;
}

.search-container {
  text-align: center;
  margin-top: 5%;
  height: 100vh;
}

.search-container h1 {
    font-size: 70pt;
}

.search-container h1, h6 {
  text-shadow: 2pt 0pt 4pt rgba(0,0,0,0.1);
}

.search-container input {
  height: 30pt;
  width: 80vw;
  margin-top: 5pt;
  font-size: 28pt;
}

.search-container input, .sub-search-container input{
      border-radius: 50pt;
 }

.search-container input,
.sub-search-container input,
.instances-container input,
.misc-container select {
  color: var(--search-container-text-color);
  background: var(--search-container-background-color);
  padding: 20pt;
  font-family: sans-serif;
  border: 2pt solid rgba(255,255,255,0.1);
  box-shadow: -20pt 20pt 40pt rgba(0,0,0,0.05),20pt -20pt 40pt rgba(255,255,255,0.1);
}

.search-button-wrapper button,
.misc-container button,
.misc-container select {
    color: inherit;
    background-color: var(--button-bg);
    border-radius: 5pt;
}

.misc-container select, .instances-container input {
    padding: 5pt;
    font-size: inherit;
    font-family: inherit;
    border-radius: 5pt;
    float: right;
    outline: none;
    }

.search-button-wrapper button, .misc-container button {
    margin: 30pt 60pt 0pt 60pt;
    background: var(--gradient-bg);
    transition: ease-out 0.095s;
    color: #fff;
    border: 1pt solid rgba(255,255,255,0.1);
    box-shadow: -20pt 20pt 40pt rgba(0,0,0,0.05),20pt -20pt 40pt rgba(255,255,255,0.1);
    font-size: 24pt;
    padding: 13pt 10pt 13pt 10pt;
}

.search-button-wrapper button {
    margin: 30pt 60pt 0pt 60pt;
}

.sub-search-container {
  background-color: var(--search-form-background-color);
  background: linear-gradient(45deg, #A58AE3, #BB6BC6, #7068DB, #BB6BC6);
  background-size: auto;
  animation: headerbg 10s ease infinite;
  background-size: 400% 400%;
  width: 100%;
  height: 95pt;
  border-bottom: 1pt solid rgba(255,255,255,0.5);
}

.sub-search-container hr {
    opacity: 0;
}

.sub-search-container input {
    margin-bottom: 20pt;
    width: 480pt;
    position: relative;
    left: 145pt;
    margin: 22pt;
    height: 5pt;
    font-size: 18pt;
    
}

.logomobile {
    position: absolute;
    margin-top: 0pt;
    top: 25pt;
    left: 20pt;
}

.no-decoration {
    text-decoration: none;
    color: #fff;
}

.no-decoration:hover {
    text-decoration: none;
}

.sub-search-button-wrapper {
  margin-left: 170pt;
  margin-top: 10pt;

}

.search-button-wrapper button:hover,
.misc-container button:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.sub-search-button-wrapper i {
    vertical-align: middle;
    margin-right: 5pt;
}

.sub-search-button-wrapper a {
    border: none;
    background-color: inherit;
    font-size: 15pt;
    margin-right: 20pt;
    cursor: pointer;
    text-decoration: none;
}

.sub-search-button-wrapper img {
    vertical-align: middle;
    margin-right: 5pt;
    width: 20pt;
}

.misc-container {
    text-align: center;
    word-wrap: break-word;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100pt;
}

.misc-container div {
    margin-bottom: 30pt;
}

.misc-container button {
    margin-right: 10pt;
    margin-left: 10pt;
}

.misc-container a {
    color: inherit;
    text-decoration: underline;
}

.instances-container div {
    text-align: left;
    margin-bottom: 25pt;
}

.settings-textbox-container div {
    text-align: center;
    margin-bottom: 25pt;
}

.settings-textbox-container input {
    color: inherit;
    background-color: inherit;
    padding: 5pt;
    font-size: inherit;
    font-family: inherit;
    border: 1pt solid #5f6368;
    border-radius: 5pt;
    float: right;
}

.text-result-container,
#time,
.next-page-button-wrapper,
.did-you-mean {
    margin-left: 170pt;
}

#time {
    margin-top: 45pt;
    font-size: 12pt;
}

.text-result-container {
    margin-bottom: 100pt;
}

.special-result-container {
    padding: 10pt;
    border: 1pt solid var(--special-result-border);
    width: 500pt;
    border-radius: 8pt;
    background: var(--special-text-background);
    color: var(--special-text-color);
    margin-left: 840pt;
    margin-top: 0pt;
    position: absolute;
}

.text-result-wrapper {
    max-width: 550pt;
    word-wrap: break-word;
    margin-bottom: 35pt;
}

.text-result-wrapper a {
    font-size: 14pt;
    color: var(--result-fg);
}

.video-img {
    height: 115pt;
    border-radius: 12pt;
}

.text-result-wrapper h2 {
    font-size: 20pt;
    color: var(--result-link-fg);
    padding-top: 5pt;
    margin-top: 1pt;
}

.special-result-container a {
    display: flex;
    margin-top: 10pt;
    font-size: 14pt;
}

.special-result-container img {
    display: flex;
    max-width: 60%;
    max-height: 200pt;
    padding-bottom: 10pt;
    margin-left: auto;
    margin-right: auto;
}

.next-page-button-wrapper {
    margin-top: -40pt;
    margin-bottom: 100pt;
}

.next-page-button-wrapper button {
    border: none;
    background-color: inherit;
    color: var(--result-link-fg);
    font-size: 28pt;
    margin-right: 8pt;
}

.next-page-button-wrapper .page {
    display: inline;
}

.image-result-container {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 1.5rem;
    justify-items: center;
    margin-left: 9%;
    margin-right: 9%;
    padding: 0;
    margin-bottom: 50pt;
}

a[title] {
    flex-grow: 1;
    height: 12rem;
}

.image-result-container img {
    margin: 0pt;
    height: 80%;
    width: 80%;
    object-fit: cover;
    vertical-align: bottom;
    border-radius:10pt;
    background: var(--search-container-background-color);
    border: 1pt solid white;
    box-shadow: -20pt 20pt 40pt rgba(0,0,0,0.05),20pt -20pt 40pt rgba(255,255,255,0.1);
    transition: all ease-in-out 0.1s;
}

.image-result-container img:hover {
	transform: scale(1.25);
}

.footer-container {
    width: 100vw;
    left: 0;
    position: absolute;
    padding-top: 5pt;
    padding-bottom: 5pt;
    text-align: center;
    font-size: 14pt;
}

.footer-container > li {
  display: inline;
}

.footer-container a {
    color: var(--result-link-fg);
    margin-right: 30pt;
}

.hide {
    display: none;
}

.search-container .Y {
    animation: textflicker alternate 0.4s infinite;
    color: white;
    font-size: 80pt;
}

.sub-search-container .Y {
    color: white;}

.seeders {
    color: #50fa7b;
}

.leechers {
    color: #ff79c6;
}

@media only screen and (max-width: 1320pt) {
    .special-result-container {
        position: relative;
        float: none;
        margin-left: 165pt;
    }
}

/* mobile view */
@media only screen and (max-width: 750pt) {
    p {
        font-size: 16pt;
    }

    html {
        font-size: 14pt;
    }

    .search-container {
        padding-bottom: 80vh;
        margin-top: 10%;
    }

    .search-container input {
        width: 80%;
    }

    .search-button-wrapper button {
        margin: 30pt 0pt 0pt 0pt;
        width: 70%;
        padding: 10pt 3pt 10pt 3pt;
    }

    .image-result-container {
        display: unset;
        margin: 0;
        padding: 0;
    }

    .image-result-container img {
        margin: 0 5% 5% 5%;
        padding: 0;
        width: 90%;
        border: none;
    }

    .footer-container a {
        margin: 10pt;
    }
    
   .footer-container {
        position: static;
        margin: 0;
        padding: 5pt 0;
    }
    
    .footer-container > li {
        display: block;
        list-style: none;
        margin-left: 5pt;
        margin-bottom: 10pt;
    }

    .sub-search-container {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        padding-bottom: 5pt;
    }

    .sub-search-container .logo {
        display: none;

    }

    .logomobile {
        position: relative;
        float: none;
        margin-top: 0pt;
        margin-bottom: 0pt;
        margin-left: auto;
        margin-right: auto;
        padding: 10pt;
        font-size: 28pt;
        display: block;
        margin-top: 0pt;
        top: 0pt;
        left: 0pt;
    }

    .sub-search-container input {
        width: 80%;
        position: relative;
        left: 0pt;
        margin-top: 0pt;
        padding: 10pt;
    }

    .sub-search-button-wrapper {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: baseline;
    }

    .sub-search-button-wrapper img {
        margin: 0;
        padding: 0;
    }

    .sub-search-button-wrapper a {
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .special-result-container {
        position: relative;
        float: none;
        max-width: 90%;
        margin: 0 auto;
        width: auto;
    }

    .special-result-container img {
        max-width: 80%;
    }

    .misc-container {
        margin-bottom: 200pt;
        width: 95%;
    }

    .search-container h1 {
        font-size: 55pt;
    }

    .search-container {
        margin-top: 10%;
    }

    .text-result-container,
    #time,
    .next-page-button-wrapper, 
    .did-you-mean {
        margin-left: 0;
        max-width: 90%;
        padding: 5pt;
    }
    
    #time {
        padding-top: 20pt;
    }
    
    .next-page-button-wrapper {
        margin-top: 30pt;
    }

}
